<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- <title></title> -->
<link href="/Public/home/css/style.css" type="text/css" rel="stylesheet" />
<script src="/Public/home/js/jquery-1.7.min.js" type="text/javascript"></script>
<script src="/Public/home/js/common.js"  type="text/javascript"></script>
<script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
<script src="/Public/home/js/message_verify.js"></script>
<script>
    $(function(){   
    $('a[href*=#],area[href*=#]').click(function() {
        if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                $('html,body,.div1').animate({
                    scrollTop: targetOffset
                },
                1000);
                return false;
            }
        }
    });
})
</script>
</head>
<body class="index">
﻿<div class="top">
    <div class="w1200">
        <?php if(!empty($session_name)){ ?>
            <div class="left">您好，&nbsp;<a style="font-size: 15px;color: red;"><?php echo session('name'); ?></a>&nbsp;欢迎光临Let`s购！<a href="/Home/Index/loginout.html">[退出登录]</a></div>
            <div class="right"><a href="/Home/Personcenter/member.html">我的会员中心</a>|<a href="#">收藏夹</a>|<a href="#">服务中心</a>|<a href="#">在线客服</a>|<a href="/Home/Shopcar/shopcar.html" class="top_car">购物车<b><?php echo ($comnum); ?></b>件</a></div>
        <?php }else{ ?>
          <div class="left">您好，欢迎光临Let`s购！<a href="/Home/Index/login.html">[登录]</a> <a href="/Home/Index/reg.html">[注册]</a></div>
          <div class="right"><a href="/Home/Index/login.html">我的会员中心</a>|<a href="/Home/Index/login.html">收藏夹</a>|<a href="/Home/Index/login.html">服务中心</a>|<a href="/Home/Index/login.html">在线客服</a>|<a href="/Home/Index/login.html">购物车<b>0</b>件</a></div>
        <?php } ?>
        
        <div class="clear"></div>
    </div>
</div>

<div class="head">
    <div class="w1200">
        <div class="logo"><a href="/Home/Index/index.html"></a></div>
        <div class="search">
            <form action="#" class="form">
                <input type="text" value="输入商品关键字" name="keyword" class="txt" onfocus="if(value=='输入商品关键字') {value=''}" onblur="if(value=='') {value='输入商品关键字'}"/>
                <input type="submit" value="搜索" class="sub"/>
            </form>
            <!-- <p><a href="#">iphone6s</a>|<a href="#">面膜</a>|<a href="#">婚庆床品</a>|<a href="#">运动鞋</a>|<a href="#">眼霜</a>|<a href="#">月饼</a>|<a href="#">智能手机</a>|<a href="#">连衣裙</a></p> -->
        </div>
        <div class="s_r">
            <dl>
                <dt>
                    <p class="shopcar_all" >购物车<span><?php echo ($comnum); ?></span></p>
                    <div class="com_car" style="">
                        <div class="line" ></div>
                        <div class="car_head" >最新添加的商品</div>
                        <hr>
                        <div class="commodity_list">
                            <?php if($comnum==0){ ?>
                                <div>购物车中还没商品，赶紧选购吧！</div>
                            <?php }else{ ?>
                                <div  style="overflow-y:scroll;width:98%;height: 150px;">
                                    <table style="width: 100%;overflow-y:scroll;text-align: center;overflow-y:scroll;" id="shop" >
                                        <tr style="height: 30px;border: 1px solid black;">
                                            <td>图片</td>
                                            <td style="text-align: center;">商品简介</td>
                                            <td>单价X数量</td>
                                            <td>总价</td>
                                            <td>删除</td>
                                        </tr>
                                        <?php $a=0;foreach($shopCar as $key => $value){ ?>
                                            <tr class="shopcar-tr">
                                                <td class="shopcar-td">
                                                    <a ><img src="/Public/upload/<?php echo $value['com_img_name']; ?>" class="shopcar-img"></a>
                                                </td>
                                                <td class="shopcar-name">
                                                    <a ><?php echo $value['com_name'].'　'.$value['com_discription']; ?></a>
                                                </td>
                                                <td><?php echo $value['com_price'].'X'.$value['com_num']; ?></td>
                                                <td><?php echo $value['com_price']*$value['com_num']; ?></td>
                                                <td><a href="/Home/Shopcar/delete?shopid=<?php echo $value['id']; ?>" class="delcar"><button  class="headdel" >删除</button></a></td>
                                            </tr>
                                        <?php $a=$a+$value['com_price']*$value['com_num'];} ?>
                                    </table>
                                </div>
                                
                                <div class="shop-foot">
                                    <span">总计：<?php echo $a; ?></span>
                                    <span style="float: right;"><button><a href="/Home/Shopcar/shopcar" class="go-shopcar" >去购物车</a></button></span>
                                </div>
                            <?php } ?>
                        </div>
                    </div>
                </dt>
                <dd>客服电话：<b>123-4567-891</b></dd>
            </dl>
        </div>
        <div class="clear"></div>
    </div>
</div>

<div class="menu">
    <div class="w1200">
        
        <div class="item"><a href="/Home/Index/index.html" class="home">商城首页</a></div>
        <div class="item"><a href="/Home/Product/product.html" class="timg">商品中心</a></div>
        <!-- 博客分类导航条 -->
        <div>
            <div class="left_nav"></div>
              <ul class="nav navbar-nav first_nav" id="nav">
                <?php foreach($cates as $cate){?>
                <!-- 顶级分类不显示 -->
                        <?php if(!empty($cate['child'])){?>
                            <ul id="third_nav">
                                <?php foreach ($cate['child'] as $child) {?>
                                    <li  class="item" id="third_content"><a href="/Home/Product/product.html?cateid=<?php echo $child['id']; ?>"><?php echo $child['cate_name']?></a>
                                        <?php if(!empty($child['child'])){?>
                                            <ul id="four_nav" style="display: none;">
                                                <?php foreach ($child['child'] as $childson) {?>
                                                    <li style=""><a href="/Home/Product/product.html?cateid=<?php echo $childson['id']; ?>"><?php echo $childson['cate_name']?></a>
                                                <?php }?>
                                            </ul>
                                        <?php } ?>
                                <?php } ?>
                            </ul>
                        <?php } ?>
                    <!-- </li> -->
                <?php }?>
              </ul>
            </div><!-- /.container-fluid -->
        </div>
        <!-- 博客分类导航条 -->
    </div>
</div>
<script type="text/javascript">
    $('#third_nav > li').on('mouseover',function(){
        $(this).find('#four_nav').show();
        $(this).find('#four_nav').css('background','#404145');
        $(this).find('#four_nav').css('color','#fff');
        $(this).find('#four_nav').css('position','absolute');
        $(this).css('position','relative');
    });
    $('#third_nav > li').on('mouseout',function(){
        $(this).find('#four_nav').hide();
    });

</script>
<!-- 购物车商品显示 -->
<script type="text/javascript">
    $(function(){
        $('.shopcar_all').hover(function(){
            $('.com_car').css('display','block');
        },function(){
            $('.com_car').css('display','none');
        });
        $('.com_car').hover(function(){
            $('.com_car').css('display','block');
        },function(){
            $('.com_car').css('display','none');
        });
        $('.delcar').on('click',function(){
            $(this).parent().parent().remove();
            $.get($(this).attr('href'),function(){});
            return false;
        });
    });
</script>
    <!--===========layout-container================-->
   <!DOCTYPE>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心</title>
<link href="/Public/home/css/style.css" type="text/css" rel="stylesheet" />
<script src="/Public/home/js/jquery-1.7.min.js" type="text/javascript"></script>
<script src="/Public/home/js/common.js"  type="text/javascript"></script>
<script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
<script src="/Public/home/js/message_verify.js"></script>
</head>
<body class="index">

<div class="w1200">
	<div class="position"><a href="#">首页</a> > <a href="#">会员中心</a> > <a href="#">个人资料</a></div>
    
    <div class="m_d">
    	<div class="left">
        	<dl><dt>账户管理</dt>
            <dd>
            	<a href="<?php echo ($member); ?>" id="per_info">修改密码</a>
                <a href="#" class="on" id="re_pass">添加地址</a>
                <a href="<?php echo ($orderall); ?>" id="allorder">订单管理</a>
                <a href="#">绑定会员卡</a>
                <a href="#">绑定银行卡</a>
                <a href="#">升级管理</a>
                <a href="#">账单列表</a>
                <a href="#">提现申请</a>
            </dd>
            </dl>
            <!-- <dl><dt class="dt02">排队管理</dt>
            <dd>
            	<a href="#">参与排队</a>
                <a href="#">全国排队详情</a>
                <a href="#">23通道排队列表</a>
                <a href="#">12通道排队列表</a>
                <a href="#">6通道排队列表</a>
            </dd>
            </dl> -->
        </div>
        <div class="right">
        	<dl class="dl01">
            	<dt><img src="/Public/home/images/ico04.jpg"/></dt>
                ﻿<dd>
    <table width="725" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="416" class="td01">尊敬的，<font><?php echo ($name); ?></font> 您好！<span>(普通会员)</span></td>
        <!-- <td width="44">余额：</td>
        <td width="122"><span>0.000元</span></td>
        <td width="56" align="right">可用：</td>
        <td width="87"><span>0.000元</span></td> -->
      </tr>
      <tr>
        <td>还没有上传头像？ 点击<a href="#">
        <form action="/Home/Personcenter/upload.html" enctype="multipart/form-data" method="post" id="form">
            <input type="file" name="photo"/>
            <button class="return_del" style="width:95px;height:30px;background-color: #b70100;color:#fff;font-size: 15px;font-weight: bolder;box-shadow: 5px 5px 5px lightgray;cursor: pointer;">更换头像</button>
        </form>
        <!-- </a><a class="save" href="#">保存</a></td> -->
        <!-- <td>冻结：</td>
        <td><span>0.000元</span></td>
        <td align="right">已提现：</td>
        <td><span>0.000元</span></td> -->
      </tr>
    </table>
    <img src="/ThinkPHP/ThinkPHP/<?php echo ($time); ?>/<?php echo ($photo); ?>" style="width: 130px;height:150px;" id="headimg" />
</dd>
<script type="text/javascript">
    $(function(){
        $('#form').on('submit',function(){
            $.ajax({
                url: $(this).attr('action'),
                type: 'post',
                dataType: 'json',
                data: $(this).serialize(),
                success:function(img){
                    if (img.code=="200") {
                        $('#headimg').attr('src',img.src);
                    }else{
                        $('#headimg').attr('alt',img.src);
                        $('#headimg').attr('title',img.src);
                    }
                }

            });
        });
    });
</script>
            </dl>
            <dl class="dl02 personinfo">
                <dt>
                    <span>已添加地址</span>
                </dt>
                <div>&nbsp;</div>
                <?php $i=1; ?>
                <?php foreach($addresses as $key => $value){ ?>
                    <?php if($i<=5){ ?>
                        <ul class="Address_info">
                            <div class="address_title"><a href="#" class="modify " title="修改信息"></a>第<?php echo $i; ?>条地址信息 <a href="javascript:over('0')" class="delete "><i class="iconfont icon-close"></i></a></div>
                            <li>收件人：<?php echo $value['username']; ?></li>
                            <li>收件地址：<?php echo $value['address']; ?></li>
                            <li>联系方式：<?php echo $value['phone']; ?></li>
                            <li>邮编：<?php echo $value['postcode']; ?></li>
                        </ul>  
                        <div><a href="<?php echo ($del); ?>?id=<?php echo $value['id']; ?>"><button class="return_del" style="">删除</button></a></div>
                        <div>&nbsp;</div>  
                        <div>&nbsp;</div>  
                        <div>&nbsp;</div>  
                <?php }$i++;} ?>
            </dl>
            <dl class="dl02 personinfo">
            	<dt>
                	<span>添加地址</span>
                </dt>
                <dd>
                    <form action="<?php echo ($addressact); ?>" method="post" id="commentForm">
                        <!-- <div class="item"><span><font>*</font>用户真实姓名：</span><input type="tex" class="txt"/></div>
                        <div class="item"><span><font>*</font>用户身份证号码：</span><input type="tex" class="txt"/></div>
                        <div class="item"><span><font>*</font>性别：</span><input type="radio" value="" name="sex"/> 男&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" value="" name="sex"/> 女</div> -->
                        <!-- <div class="item"><span style="float:left"><font>*</font>开户行：</span>
                        <div class="xlc"><input name="aaa" class="txt-xl li01" value="储蓄卡|213213"/><span>更换银行 V</span>
                              <ul>
                                  <li class="li01">储蓄卡|111111</li>
                                  <li class="li02">储蓄卡|222222</li>
                                  <li class="li03">储蓄卡|213213</li>
                              </ul>
                          </div>
                          <div class="clear"></div>
                         </div>
                         <div class="item"><span><font>*</font>开户人姓名：</span><input type="tex" class="txt"/></div>
                         <div class="item"><span><font>*</font>银行卡号：</span><input type="tex" class="txt"/></div> -->
                        
                         <!-- <div class="item"><span><font>*</font>联系地址：</span><select><option value="广东省">广东省</option></select><select><option value="深圳市">深圳市</option></select><input type="tex" class="txt"/></div> -->
                        <div>
                            <table>
                                <tr>
                                    <td><span><font>*</font>收货地址：</span></td>
                                    <td>
                                        <span><font>&nbsp;&nbsp;&nbsp;</font><select class="changeAct" id="level1" level="1" name="add1" min="0" style="width: 210px;">
                                            <option value="0">请选择</option>
                                            <?php if(is_array($states)): $i = 0; $__LIST__ = $states;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$state): $mod = ($i % 2 );++$i;?><option value="<?php echo ($state["id"]); ?>"><?php echo ($state["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                        </select></span>
                                    </td>
                                    <td>
                                        <span><font>&nbsp;&nbsp;&nbsp;</font><select class="changeAct" id="level2" level="2" name="add2"  min="0" style="width: 210px;">
                                            <option value="0">请选择</option>
                                            <?php if(is_array($areas)): $i = 0; $__LIST__ = $areas;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$area): $mod = ($i % 2 );++$i;?><option value="<?php echo ($area["id"]); ?>"><?php echo ($area["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                        </select></span>
                                    </td>
                                    <td>
                                        <span><font>&nbsp;&nbsp;&nbsp;</font><select class="changeAct" id="level3" level="3" name="add3"  min="0" style="width: 210px;">
                                            <option value="0">请选择</option>
                                            <?php if(is_array($locals)): $i = 0; $__LIST__ = $locals;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$local): $mod = ($i % 2 );++$i;?><option value="<?php echo ($local["id"]); ?>"><?php echo ($local["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                        </select></span>
                                    </td>
                                </tr> 
                                <tr><td colspan="4">&nbsp;</td></tr> 
                                <tr>
                                    <td><font>*</font>详细地址：</td>
                                    <td colspan="3">
                                        <textarea name="add4" style="height: 50px;"  class="address" required="true" ></textarea>
                                    </td>
                                </tr>
                                <tr><td colspan="4">&nbsp;</td></tr> 
                                <tr>
                                    <td class="label_name"><font>*</font>收件人姓名</td><td><input name="username" type="text"  class="addtex"  required="true"/><i>（必填）</i></td>
                                    <td class="label_name">电子邮箱</td><td><input name="email" type="text"  class="addtex"/><i>（选填）</i></td>
                                </tr>
                                <tr><td colspan="4">&nbsp;</td></tr> 
                                <tr>
                                    <td class="label_name"><font>*</font>邮&nbsp;&nbsp;编</td><td><input name="postcode" type="text"  class="addtex" required="true" rangelength="5,7"/><i>（必填）</i></td>
                                    <td class="label_name">性&nbsp;&nbsp;别</td><td> 
                                    <label class="sex"> <input type="radio" name="gender" value="1" id="RadioGroup1_0"  class="select"/><span>男</span></label>
                                    <label class="sex"><input type="radio" name="gender" value="2" id="RadioGroup1_1" class="select"/><span>女</span></label><i>（选填）</i> </td>
                                </tr>
                                <tr><td colspan="4">&nbsp;</td></tr> 
                                <tr>
                                    <td class="label_name"><font>*</font>手&nbsp;&nbsp;机</td><td><input name="phone" type="text"  class="addtex" length="11" required="true"  rangelength="10,12"/><i>（必填）</i></td>
                                     <td class="label_name">固定电话</td><td><input name="tel" type="text"  class="addtex"/><i>（选填）</i></td>
                                </tr>
                                <tr><td colspan="4">&nbsp;</td></tr> 
                                <tr><td class="label_name"></td><td></td><td class="label_name"></td><td></td>
                                </tr>             
                            </table>
                                 <div class="address_Note"><span>注：</span>只能添加5个收货地址信息。请勿用假名填写地址，如造成损失由收货人自己承担。</div>
                                 <div class="item"><input name="1" type="submit" value="添加地址" class="sub" /></div>
                        </div>
                    </form>
                	
                </dd>
            </dl>
        </div>
        <div class="clear"></div>
    </div>
</div>
<script>
    // $.validator.setDefaults({
    //     submitHandler: function() {
    //       alert("注册!");
    //     }
    // });
    $().ready(function() {
        $("#commentForm").validate();
    });
    // $('#cap').on('blur',function(){
    //     var cap=$('#cap').text();
    //     session.setAttribute("cap",cap);
    // });
</script>
<script type="text/javascript">
    $('.changeAct').on('change',function(){
        $.ajax({
            type:'post',
            data:'pid='+$(this).val()+'&level='+$(this).attr('level'),
            url:'<?php echo ($region); ?>',
            dataType:'json',
            success:function(data){
                if (data.status=="OK") {
                    var html='<option value="0">请选择</option>';
                    for (var i = 0; i < data.area.length; i++) {
                        html=html+'<option value="'+data.area[i].id+'">'+data.area[i].name+'</option>';
                    }
                    $level=parseInt(data.level)+1;
                    $('#level'+$level).html(html);
                }
            }
        });
    });
</script>
<!-- <script type="text/javascript">
    $(function(){
        $("#per_info").on('click',function(){
            $('.right dl').css('display','none');
            $('.personinfo').css('display','block');
            $('.dl01').css('display','block');
        });
        $("#re_pass").on('click',function(){
            $('.right dl').css('display','none');
            $('.reviewpassword').css('display','block');
            $('.dl01').css('display','block');
        });
        $("#allorder").on('click',function(){
            $('.right dl').css('display','none');
            $('.reviewpassword').css('display','block');
            $('.dl01').css('display','block');
        });
    });
</script> -->
<!--footer-->


</body>
</html>

  <!--===========layout-footer================-->
 <div class="footer">
	<div class="f_bz">
    	<div class="w1200">
            <dl class="dl01">
                <dt>正品保证</dt>
                <dd>正品护航  购物无忧</dd>
            </dl>
            <dl class="dl02">
                <dt>你消费 我买单</dt>
                <dd>返现购物商城</dd>
            </dl>
            <dl class="dl03">
                <dt>品类丰富</dt>
                <dd>品类齐全 轻松购物</dd>
            </dl>
            <dl class="dl04">
                <dt>特色服务体验</dt>
                <dd>为您呈现不一样的服务</dd>
            </dl>
            <div class="clear"></div>
        </div>
    </div>
	<div class="f_nav">
    	<div class="w1200">
            <dl>
                <dt>新手指南</dt>
                <dd>
                    <a href="reg.html">注册新用户</a>
                    <a href="#">商品订购流程</a>
                    <a href="#">会员注册协议</a>
                </dd>
            </dl>
            <dl>
                <dt>付款方式</dt>
                <dd>
                    <a href="#">支付宝支付</a>
                    <a href="#">网上银行支付</a>
                    <a href="#">货到付款</a>
                </dd>
            </dl>
            <dl>
                <dt>常见问题</dt>
                <dd>
                    <a href="#">订单状态</a>
                    <a href="#">发票说明</a>
                </dd>
            </dl>
            <dl>
                <dt>售后服务</dt>
                <dd>
                    <a href="#">退换货政策</a>
                    <a href="#">退换货流程</a>
                    <a href="#">退款说明</a>
                    <a href="#">退换货申请</a>
                </dd>
            </dl>
            <dl>
                <dt>客服中心</dt>
                <dd>
                    <a href="#">常见问题</a>
                    <a href="#">联系客服</a>
                    <a href="#">投诉与建议</a>
                </dd>
            </dl>
            <div class="ewm"><img src="/Public/home/images/home/ico35.png"/></div>
            <div class="ewm"><img src="/Public/home/images/home/ico38.png"/></div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="w1200">
        <div class="bottom">
            <a href="#">关于我们</a>|<a href="#">帮助中心</a>|<a href="#">法律声明</a>|<a href="#">用户协议</a>|<a href="#">联系我们</a>|<a href="#">人才招聘</a>|<a href="#">站点地图</a>
           
            <!-- <p>网络文化经营许可证：粤网文[2015]0295-065号<br />© 2015 深圳易易城科技网络有限公司. 粤ICP备15042543号</p> -->
            <p>网络文化经营许可证：ＸＸＸ[2017]1234-567号<br />© 2017 ＸＸＸＸＸ科技网络有限公司. ＸICP备12345678号</p>
            <p class="p02"><img src="/Public/home/images/home/ico25.jpg"/><img src="/Public/home/images/home/ico26.jpg"/><img src="/Public/home/images/home/ico27.jpg"/><img src="/Public/home/images/home/ico36.jpg"/><img src="/Public/home/images/home/ico37.jpg"/></p>
        </div>
    </div>
</div>
<!--float_right-->
<div class="float">
    <ul>
        <li><a href="/index.php/Home/Shopcar/shopcar.html" class="a01"></a></li>
        <li><a href="#" class="a02"></a></li>
        <li><a href="#" class="a03"></a></li>
        <li><a href="#" class="a04"></a></li>
        <li><a href="#top" class="a05"></a></li>
    </ul>
</div>
<script language="javascript" type="text/javascript">
$(function () {
        var dv = $(".idx01").offset().top;
        var dv2 = $(".idx02").offset().top;
        var dv3 = $("#idx03").offset().top;
        var dv4 = $("#idx04").offset().top;
        var dv5 = $("#idx05").offset().top;
        var dv6 = $("#idx06").offset().top;
        window.onscroll=function(){
            if(dv<document.body.scrollTop)
            {
                $(".float2 a").removeClass("on");
                $(".float2 .a01").addClass("on");
                
            }
            if(dv2<document.body.scrollTop)
            {
                $(".float2 a").removeClass("on");
                $(".float2 .a02").addClass("on");
            }
            if(dv3<document.body.scrollTop)
            {
                $(".float2 a").removeClass("on");
                $(".float2 .a03").addClass("on");
            }
            if(dv4<document.body.scrollTop)
            {
                $(".float2 a").removeClass("on");
                $(".float2 .a04").addClass("on");
            }
            if(dv5<document.body.scrollTop)
            {
                $(".float2 a").removeClass("on");
                $(".float2 .a05").addClass("on");
            }
            if(dv6<document.body.scrollTop)
            {
                $(".float2 a").removeClass("on");
                $(".float2 .a06").addClass("on");
            }
        }
    });
</script>
<script language="javascript" type="text/javascript">
<!--//--><![CDATA[//><!--
//图片滚动列表 mengjia 070816
var Speed = 10; //速度(毫秒)
var Space = 10; //每次移动(px)
var PageWidth = 404; //翻页宽度
var fill = 0; //整体移位
var MoveLock = false;
var MoveTimeObj;
var Comp = 0;
var AutoPlayObj = null;
GetObj("List2").innerHTML = GetObj("List1").innerHTML;
GetObj('ISL_Cont').scrollLeft = fill;
GetObj("ISL_Cont").onmouseover = function(){clearInterval(AutoPlayObj);}
GetObj("ISL_Cont").onmouseout = function(){AutoPlay();}
AutoPlay();
function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval

('document.all.'+objName)}}
function AutoPlay(){ //自动滚动
clearInterval(AutoPlayObj);
AutoPlayObj = setInterval('ISL_GoDown();ISL_StopDown();',5000); //间隔时间
}
function ISL_GoUp(){ //上翻开始
if(MoveLock) return;
clearInterval(AutoPlayObj);
MoveLock = true;
MoveTimeObj = setInterval('ISL_ScrUp();',Speed);
}
function ISL_StopUp(){ //上翻停止
clearInterval(MoveTimeObj);
if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0){
Comp = fill - (GetObj('ISL_Cont').scrollLeft % PageWidth);
CompScr();
}else{
MoveLock = false;
}
AutoPlay();
}
function ISL_ScrUp(){ //上翻动作
if(GetObj('ISL_Cont').scrollLeft <= 0){GetObj('ISL_Cont').scrollLeft = GetObj

('ISL_Cont').scrollLeft + GetObj('List1').offsetWidth}
GetObj('ISL_Cont').scrollLeft -= Space ;
}
function ISL_GoDown(){ //下翻
clearInterval(MoveTimeObj);
if(MoveLock) return;
clearInterval(AutoPlayObj);
MoveLock = true;
ISL_ScrDown();
MoveTimeObj = setInterval('ISL_ScrDown()',Speed);
}
function ISL_StopDown(){ //下翻停止
clearInterval(MoveTimeObj);
if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0 ){
Comp = PageWidth - GetObj('ISL_Cont').scrollLeft % PageWidth + fill;
CompScr();
}else{
MoveLock = false;
}
AutoPlay();
}
function ISL_ScrDown(){ //下翻动作
if(GetObj('ISL_Cont').scrollLeft >= GetObj('List1').scrollWidth){GetObj('ISL_Cont').scrollLeft =

GetObj('ISL_Cont').scrollLeft - GetObj('List1').scrollWidth;}
GetObj('ISL_Cont').scrollLeft += Space ;
}
function CompScr(){
var num;
if(Comp == 0){MoveLock = false;return;}
if(Comp < 0){ //上翻
if(Comp < -Space){
   Comp += Space;
   num = Space;
}else{
   num = -Comp;
   Comp = 0;
}
GetObj('ISL_Cont').scrollLeft -= num;
setTimeout('CompScr()',Speed);
}else{ //下翻
if(Comp > Space){
   Comp -= Space;
   num = Space;
}else{
   num = Comp;
   Comp = 0;
}
GetObj('ISL_Cont').scrollLeft += num;
setTimeout('CompScr()',Speed);
}
}
//--><!]]>
</script> 


</body>
</html>